package work20241207_chap8.n;

/**
 * @author zdl
 * @date 2024/12/7
 */
public class PrimeNum {
    public static boolean isPrime(int n){
        if (n <=1 ){
            return false;
        }

        for (int i = 2; i < n; i++) {
            if (n % i == 0){
                return false;
            }
        }

        return true;
    }

    public static void main(String[] args) {
        System.out.println(PrimeNum.isPrime(7));
    }
}
